package cn.smbms.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class test {

    @RequestMapping(value = "/test")
    public String test(String username, Model model){
        return "test";
    }
    @RequestMapping(value = "/success")
    public String success(String username, Model model){
        model.addAttribute("user",username);
        return "success";
    }
}
